package com.xyht.sca_s.student_manage_system.modules.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 资源列表
 * </p>
 *
 * @author XYHT
 * @since 2022-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_resource")
@ApiModel(value="SmsResource对象", description="资源列表")
public class SmsResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "资源名")
    private String name;

    @ApiModelProperty(value = "资源路径")
    private String url;

    @ApiModelProperty(value = "资源描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "父资源id  默认父资源id为0")
    private Integer parentId;

    @ApiModelProperty(value = "能否被修改  0：不能  1：能")
    private Integer canDeleted;

    @ApiModelProperty(value = "资源排序")
    private Integer resOrder;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer isDeleted;


}
